package com.luzhiqing.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luzhiqing
 * @version 1.0
 * @date 2023/8/9
 */
@RestController
public class HelloWorldController {
    @Autowired
    private HelloWorldService helloWorldService;
    @RequestMapping(path = "/v1/luzhiqing/hello-world", method = RequestMethod.GET)
    public String helloWorld(@RequestParam("name") String name) {
        return helloWorldService.helloWorld(name);
    }

}
